﻿<%@ Page Language="c#" Inherits="ManageInside_More" CodeFile="More.aspx.cs" %>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>已发布信息</title>
</head>
<script src="../js/jquery.js" type="text/javascript"></script>
<script type="text/javascript">
    //添加
    function OpenNewAdd() {
        var type = $("#ddlType").val();

        if (type != "") {
            window.location.href = "WebPubManager.aspx?type=" + type;
        }
        else {
            return;
        }
    }

    //父窗口的打开事件
    function OpenParentDialog(title, url) {
        window.open(url, title);
    }
    
</script>
<body>
    <form id="Form1" runat="server">
    <div style="text-align: center">
        <table style="width: 100%">
            <tr>
                <td style="text-align: center">
                    <select id="ddlType">
                        <option value="公司新闻">公司新闻</option>
                        <option value="行业新闻">行业新闻</option>
                        <option value="解决方案">解决方案</option>
                        <option value="经典案例">经典案例</option>                        
                    </select>
                    <input type="button" id="add" value="新增" onclick="OpenNewAdd();" />
                </td>
            </tr>
            <tr>
                <td>
                    <asp:DataGrid ID="DataGrid2" runat="server" BorderColor="#66FF66" BorderStyle="Solid"
                        BorderWidth="1px" BackColor="White" CellPadding="4" AutoGenerateColumns="False" OnPageIndexChanged="DataGrid2_PageIndexChanged" 
                        Width="100%" PageSize="10" AllowPaging="True" Font-Bold="False"  OnItemCommand="DataGrid2_ItemCommand" OnItemDataBound="DataGrid2_ItemDataBound">
                        <Columns>
                            <asp:BoundColumn DataField="ID" Visible="False"></asp:BoundColumn>
                            <asp:BoundColumn DataField="TYPE" HeaderText="所属名称"></asp:BoundColumn>
                            <asp:TemplateColumn HeaderText="标题">
                                <ItemTemplate>
                                    <a href="javascript:OpenParentDialog('信息查看','detail.aspx?id=<%#Eval("id") %>')">
                                        <%#Eval("TITLE")%></a>
                                </ItemTemplate>
                            </asp:TemplateColumn>
                            <asp:BoundColumn DataField="FBSJ" HeaderText="发布时间"></asp:BoundColumn>
                            <asp:TemplateColumn>
                                <ItemTemplate>
                                    <asp:HyperLink ID="hlmodify" runat="server" Visible="false">修改</asp:HyperLink>
                                    <asp:HyperLink ID="hlDel" runat="server" Visible="false">删除</asp:HyperLink>
                                </ItemTemplate>
                            </asp:TemplateColumn>
                        </Columns>
                    </asp:DataGrid>
                </td>
            </tr>
        </table>
    </div>
    </form>
</body>
</html>
